package com.neu.dao;

import com.neu.common.GoodsAllinone;
import com.neu.domain.ShoppingGoods;
import com.neu.domain.ShoppingGoodsAttribute;
import com.neu.domain.ShoppingGoodsProduct;
import com.neu.domain.ShoppingGoodsSpecification;
import com.neu.vo.BrandVo;
import com.neu.vo.CategoryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品管理 秦佳宇
 */
@Repository
public interface ShoppingGoodsMapper {

    List<ShoppingGoods> list(@Param("sort")String sort, @Param("order")String order,@Param("goodsSn")Integer goodsSn,@Param("name")String name);

    ShoppingGoods selectByExampleWithBLOBs(@Param("id") Integer id);


    int delete(ShoppingGoods shoppingGoods);


    int update(ShoppingGoods shoppingGoods);

    List<ShoppingGoodsSpecification> specifications(ShoppingGoodsSpecification shoppingGoodsSpecification);

    List<ShoppingGoodsProduct> products(ShoppingGoodsProduct shoppingGoodsProduct);

    List<ShoppingGoodsAttribute> attributes(ShoppingGoodsAttribute shoppingGoodsAttribute);



    int insertGoods(ShoppingGoods shoppingGoods);


    int addSpecification(ShoppingGoodsSpecification specification);

    int addAttribute(ShoppingGoodsAttribute attribute);

    int addProduct(ShoppingGoodsProduct product);
}